package com.furongji.education.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 网站统计日数据
 * </p>
 *
 * @author furongji
 * @since 2025-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("daily_statistics")
@Schema(description = "网站统计日数据")
public class DailyStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "统计日期")
    private LocalDate statisticalDate;

    @Schema(description = "注册人数")
    private Integer registerCount;

    @Schema(description = "登录数")
    private Integer loginCount;

    @Schema(description = "新增课程数")
    private Integer courseAddCount;

    @Schema(description = "浏览数")
    private Integer courseViewCount;

    @Schema(description = "发布文章数")
    private Integer articleCount;

    @Schema(description = "评论数")
    private Integer commentCount;

    @Schema(description = "订单数")
    private Integer orderCount;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;


}
